/**
    teedoc light theme css
    @author neucrack
    @copyright (c) neucrack CZD666666@gmail.com with MIT License
    @changes 2021.1.26  add basic attrributes
 */

/* global template */
html {
    color: #606975;
    background-color: white;
    transition: 0.4s;
}
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    letter-spacing: 0.03em;
    font-family: "Microsoft YaHei",Helvetica,"Meiryo UI","Malgun Gothic","Segoe UI","Trebuchet MS",Monaco,monospace,Tahoma,STXihei,"华文细黑",STHeiti,"Helvetica Neue","Droid Sans","wenquanyi micro hei",FreeSans,Arimo,Arial,SimSun,"宋体",Heiti,"黑体",sans-serif;
}
a {
    color: #606975;
    text-decoration: none;
}
a:visited {
    color: #606975;
}
a:hover {
    background-color: #d8d8d8;
    border-radius: 5px;
    transition: 0.4s;
}
h1 {
    text-align: center;
    font-size: 2.2em;
}
h2 {
    font-size: 2em;
}
h3 {
    font-size: 1.5em;
}
h4 {
    font-size: 1.17em;
}
h5 {
    font-size: 1em;
}
h6 {
    font-size: 0.83em;
}

p {
    /* text-align: justify; */
    line-height: 2em;
}
blockquote {
    border-left: 4px solid #46c19d;
    margin: 0 0 1em 2px;
    padding: 1px;
    padding-left: 1em;
    background-color: #f1f1f1;
    border-radius: 0 5px 5px 0;
    transition: 0.4s;
}
blockquote.spoiler {
    border-left: 5px solid #FF9800;
    background-color: #ffd65b;
}
*::-webkit-scrollbar {
    width : 10px;
    height: 10px;
    }
*::-webkit-scrollbar-thumb {
    border-radius   : 10px;
    background-color: rgb(184, 184, 184);
}
*::-webkit-scrollbar-track {
    box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
    background   : #ededed;
    border-radius: 10px;
}
sup a {
    font-size: 1.1em;
    background-color: #f1f1f1;
    padding: 4px;
    border-left: 1px solid #4caf7d;
    border-right: 1px solid #4caf7d;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    width: 100%;
    overflow: auto;
    word-break: keep-all;
    border-color: transparent;
}
tr {
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
}
td, th {
    padding: 6px 13px;
    transition: 0.4s;
}
th {
    font-weight: 700;
    background-color: #46c19d;
    color: white;
    border: 2px solid #139871;
}
td {
    background-color: #fbfbfb;
    border: 2px solid #f1f1f1;
}
code {
    background-color: #f1f1f1;
    border-radius: 0.2em;
    transition: 0.4s;
    font-family: "Microsoft YaHei",Helvetica,"Meiryo UI","Malgun Gothic","Segoe UI","Trebuchet MS",Monaco,monospace,Tahoma,STXihei,"华文细黑",STHeiti,"Helvetica Neue","Droid Sans","wenquanyi micro hei",FreeSans,Arimo,Arial,SimSun,"宋体",Heiti,"黑体",sans-serif;
    font-size: 0.8em;
    color: #4caf7d;
}

/* wrapper */
#wrapper {
    display: flex;
    flex-grow: 1;
}
#page_wrapper {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
}

/* page */
#page_content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}
#page_content > div {
    flex-grow: 1;
    align-self: center;
}

/* navbar */
#navbar {
    display: flex;
    justify-content: start;
}
#navbar * {
    display: flex;
    align-items: center;
}
#navbar_menu_btn {
    display: none;
}
#navbar #navbar_items {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-right: 1em;
    word-break: keep-all;
}
#navbar a{
    margin: 5px;
    padding: 10px 15px;
    cursor: pointer;
}
#navbar a.site_title{
    padding: 0;
}
#navbar a.site_title:hover{
    background-color: transparent;
}
#navbar .site_logo {
    max-height: 60px;
}
#navbar ul {
    list-style: none;
    padding-inline-start: 10px;
}
#navbar .sub_items {
    position: relative;
    display: block;
}
#navbar .sub_items > a {
    margin: 5px;
    padding: 10px 15px;
}
#navbar .sub_items > a:hover + ul {
    visibility: visible;
}
#navbar .sub_items ul {
    display: block;
    position: absolute;
    left: 0;
    box-shadow: 0 0 9px 0px #dadada;
    border-radius: 5px;
    padding: 0;
    width: max-content;
    min-width: 100%;
    background-color: white;
    visibility: hidden;
    margin-top: -5px;
    z-index: 99;
}
#navbar .sub_items ul:hover {
    visibility: visible;
}
#navbar .sub_items ul li {
    display: block;
}


/* sidebar */
#sidebar_wrapper {
}
#sidebar {
    /* width: 300px;
    min-width: 200px;
    position: sticky;
    top: 0;
    overflow-x: hidden; */
    width: 300px;
    /* min-width: 200px; */
    /* position: sticky; */
    /* top: 0; */
    /* overflow-x: hidden; */
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding-top: var(--ifm-navbar-height);
    /* width: var(--doc-sidebar-width); */
    transition: opacity 50ms;
    padding-top: 0;
}
#sidebar ul {
    padding-inline-start: 20px;
    display: none;
}
#sidebar > ul {
    padding-inline-start: 0;
    overflow-x: hidden;
    padding: .5rem;
    display: block;
    padding-bottom: 3em;
    margin: 0;
}
#sidebar ul .show{
    /* display: block; */ /* js instead, just reserve this item*/
}
#sidebar ul .active_parent {
    display: block;
}
#sidebar ul .active_parent > ul{
    display: block;
}
#sidebar ul.collapsed, #sidebar ul .active_parent > ul.collapsed{
    /* display: none; */  /* js instead, just reserve this item*/
}
#sidebar ul .active_parent > a{
    background-color: #f1f1f1;
    border-radius: 5px;
    transition: 0.4s;
}
#sidebar li {
    list-style: none;
    margin: 2px 0;
}
#sidebar li > a {
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 0.9em;
}
#sidebar a:hover {
    cursor: pointer;
}
#sidebar .active > a, #navbar .active > a, #navbar .active_parent > a{
    background-color: #f1f1f1;
    border-radius: 5px;
    color: #4caf7d;
    transition: 0.4s;
}
#navbar .sub_items .active > a {
    transition: 0s;
}
#sidebar .active > a {
    transition: 0.4s;
}
#sidebar li > a > .label {
    padding: 10px;
}

#sidebar li > a:hover,
#sidebar li.active_parent > a:hover,
#navbar li > a:hover,
#navbar .sub_items > a:hover{
    background-color: #d8d8d8;
    border-radius: 5px;
    transition: 0.4s;
}
#sidebar .sub_indicator {
    transition: transform 0.4s linear;
    background: url("/static/image/theme_default/indicator.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    align-self: center;
    height: 1.25rem;
    width: 1.25rem;
    -ms-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    transition: 0.2s;
}

#sidebar .sub_indicator:hover,
#sidebar li.no_link > a:hover > .sub_indicator,
#sidebar li.no_link > a.sub_indicator:hover,
#sidebar li.no_link > a.sub_indicator{
    height: 1.6em;
    width: 1.6em;
}
#sidebar .sub_indicator_collapsed {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}
#menu_wrapper {
    width: 2%;
}
#menu {
    background: url("/static/image/theme_default/menu.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
    min-height: 2rem;
    min-width: 2rem;
    transition: 0.2s;
    cursor: pointer;
    position: sticky;
    top: 1em;
    z-index: 99;
    margin-left: 10px;
}

/* article */
#article {
    display: flex;
    width: 98%;
    justify-content: space-evenly;
}
#article #toc {
    background-color: white;
    position: sticky;
    width: 25%;
    transition: 0.4s;
}
#article #toc a{
    padding: 0.2em 0.1em;
    display: block;
    font-size: 0.9em;
}
#article #toc ul {
    list-style: none;
    padding-left: 1.5em;
}
#article #toc > div > ul {
    padding-left: 1em;
}
#article #toc > div {
    position: sticky;
    top: 15%;
    overflow: auto;
    height: 70vh;
    border-left: 2px solid #4caf7d;
}

/* add numbers for toc */
#toc {counter-reset: toc_l1;}
#toc > div > ul > li {counter-reset: toc_l2;}
#toc > div > ul > li > a:before {
	counter-increment: toc_l1;
	content: counter(toc_l1, upper-roman) "、";
}
#toc > div > ul > li > ul > li > a:before {
	counter-increment: toc_l2;
    content: counter(toc_l1, decimal) "." counter(toc_l2, decimal) "、";
}
.language_zh #toc > div > ul > li > a:before {
    content: counter(toc_l1, simp-chinese-informal) "、";
}
.language_zh #toc > div > ul > li > ul > li > a:before {
	content: counter(toc_l1, decimal) "." counter(toc_l2, decimal) "、";
}
/* add numbers for titles toc*/


/* article content */
#content_wrapper {
    flex-grow: 1;
    flex-grow: 1;
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    max-width: 100%;
}
#content_body {
    max-width: 50em;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 2em;
    margin: auto;
}
#content_body a, #content_body a:visited {
    color: #c33a3a;
    padding: 0.2em;
}
#content_body a:hover {
    background-color: #fde1e1;
    padding: 0.2em;
    border-radius: 0.2em;
}
#content_body img {
    max-width: 100%;
    object-fit: contain;
}
#content_body img::before {
    content: "<span class==\"img_btn\"></span>";
}

/* add numbers for titles */
#article_content {
    counter-reset: h2section;
    min-height: 50vh;
    word-break: break-word;
}
#article_content h2 {
    counter-reset: h3section;
    line-height: 1.3em;
}
#article_content h3 {
    counter-reset: h4section;
}
#article_content h2:before
{
	counter-increment: h2section;
	content: counter(h2section, upper-roman) "、";
}
#article_content h3:before 
{
	counter-increment: h3section;
	content: counter(h2section, decimal) "." counter(h3section, decimal) "、";
}
#article_content h4:before 
{
	counter-increment: h4section;
	content: counter(h2section, decimal) "." counter(h3section, decimal) "." counter(h4section, decimal) "、";
}
.language_zh #article_content h2:before {
    content: counter(h2section, simp-chinese-informal) "、";
}
.language_zh #article_content h3:before {
	content: counter(h2section, decimal) "." counter(h3section, decimal) "、";
}
.language_zh #article_content h4:before {
    content: counter(h2section, decimal) "." counter(h3section, decimal) "." counter(h4section, decimal) "、";
}
/* add numbers for titles end*/

#article_tags {
    margin: 0 0 30px 0;
}
#article_tags ul {
    list-style: none;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    padding: 0
}
#article_tags ul li{
    margin: 5px;
    padding: 8px;
    border-radius: 5px;
    color: #d5ffea;
    font-size: 0.9em;
    background-color: #4caf7d;
}


/* cover prism.css */

:not(pre) > code[class*="language-"], pre[class*="language-"] {
    background: #2d2d2d;
    border-radius: 5px;
}
div.code-toolbar > .toolbar a, div.code-toolbar > .toolbar button, div.code-toolbar > .toolbar span {
    color: #fff;
    font-size: .8em;
    padding: 1em;
    background: #f5f2f0;
    background: rgba(224, 224, 224, 0.2);
    box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
    border-radius: .5em;
    cursor: pointer;
}
div.code-toolbar > .toolbar a:hover, div.code-toolbar > .toolbar a:focus, div.code-toolbar > .toolbar button:hover, div.code-toolbar > .toolbar button:focus, div.code-toolbar > .toolbar span:hover, div.code-toolbar > .toolbar span:focus {
    color: #a9ffe0;
    text-decoration: none;
}

/* back to top button */
/* #to_top_wrapper {
} */
#to_top {
    background: url(/static/image/theme_default/to-top.svg);
    background-size: 2em;
    background-repeat: no-repeat;
    background-position: center;
    align-self: flex-end;
    position: sticky;
    bottom: 6em;
    right: 3em;
    margin: 1em;
    height: 3rem;
    width: 3rem;
    cursor: pointer;
    transition: 0.4s;
    z-index: 99;
    border-radius: 100%;
    padding: 2px;
    background-color: #f1f1f1;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.13);
}
#to_top:hover {
    background-size: 2.5em;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.24);
}
#to_top:active {
    box-shadow: 0px 0px 20px rgba(0,0,0,0.05);
}


/* footer article */
#previous_next {
    min-height: 3em;
    margin-top: 2em;
    display: flex;
    border-top: 1px solid #f1f1f1;
    padding: 1em;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
}
#previous_next > div {
    margin: 1em;
}
#previous_next a{
    padding: 1em;
    border-radius: 5px;
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    justify-content: flex-start;
}
#previous_next a:hover {
    background-color: #dedede;
}
#previous_next #previous a > .label{
    flex-grow: 1;
    text-align: center;
    padding-right: 2.5em;
}
#previous_next #previous a > .icon{
    transition: transform 0.4s linear;
    background: url("/static/image/theme_default/to-top.svg");
    background-size: 2em;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
    -ms-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    padding-right: 2em;
    padding: 0;
}
#previous_next #next a {
    justify-content: flex-end;
}
#previous_next #next a > .label{
    flex-grow: 1;
    text-align: center;
    padding-left: 2.5em;
}
#previous_next #next a > .icon{
    transition: transform 0.4s linear;
    background: url("/static/image/theme_default/to-top.svg");
    background-size: 2em;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
    -ms-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    padding-left: 2em;
    padding: 0;
}
.footnotes {
    margin-top: 5em;
}
#doc_footer {
    min-height: 2em;
    display: flex;
    background-color: #2d2d2d;
    border-top: 1px solid #2d2d2d;
    padding: 1em;
    transition: 0.4s;
}
#page_footer {
    min-height: 2em;
    margin-top: 5em;
    display: flex;
    border-top: 1px solid #f1f1f1;
    padding: 1em;
    transition: 0.4s;
    background-color: #292929;
}
#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#footer a, #footer a:visited{
    color: #848fa0;
    display: flex;
    padding: 0.2em;
    font-size: 0.9em;
}
#footer a:hover {
    background-color: #e6e6e6;
    border-radius: 0.1em;
    padding: 0.2em;
}
#footer_top {
    width: 100%;
}
#footer_top > ul {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}
#footer_top > ul > li > a {
    color: #cecece;
    font-weight: 700;
    margin: 1em 0 0.5em 0;
}
#footer_top > ul > li > a:hover {
    background-color: transparent;
}
#footer_bottom {
    margin-top: 2em;
}
#footer_bottom a {
    justify-content: center;
}

.md_page #page_content > div {
    width: 65%;
    max-width: 50em;
    margin: auto;
    line-height: 2em;
}

@media screen and (max-width: 900px) {
    #navbar {
        display: block;
        border-bottom: 1px solid #f1f1f1;
        margin-bottom: 2em;
    }
    #navbar * {
        display: block;
    }
    #navbar a.site_title {
        display: flex;
    }
    #navbar_menu {
        display: flex;
        justify-content: space-between;
    }
    #navbar ul {
        padding-left: 0;
    }
    #navbar_menu_btn {
        background: url("/static/image/theme_default/menu.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 5px;
        cursor: pointer;
        width: 1em;
        height: 1em;
        display: block;
    }
    #navbar #navbar_items {
        display: block;
        padding-right: 0;
    }
    #navbar .sub_items ul {
        left: 0;
        right: auto;
    }
    #sidebar_wrapper {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        background-color: white;
        box-shadow: 0 0 20px 0px #bbbbbb;
        width: 100%;
        z-index: 98;
        display: none;
    }
    #sidebar {
        position: relative;
        width: 100%;
    }
    #sidebar > ul {
        padding-top: 3em;
    }
    #menu_wrapper {
        z-index: 99;
    }
    #menu.m_menu_fixed {
        position: fixed;
        right: 1em;
        top: 0;
    }
    #menu.close {
        background: url("/static/image/theme_default/indicator.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 5px;
        min-height: 2.5rem;
        min-width: 2.5rem;
        -ms-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #content_body {
        /* max-width: 50em; */
        width: 90%;
    }
    #article #toc{
        display: none;
        width: 0;
    }
    #previous_next {
        flex-direction: column;
    }

    .m_hide {
        display: none;
    }
    #footer_top > ul {
        flex-direction: column;
    }
    .md_page #page_content > div {
        margin: 1.5em;
    }
}


/* special */

#themes{
    padding: 2px 5px;
    cursor: pointer;
}
#navbar .light, #navbar .dark:hover {
    background: url("/static/image/theme_default/light_mode.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 1rem;
    min-width: 1rem;
}
#navbar .dark, #navbar .light:hover {
    background: url("/static/image/theme_default/dark_mode.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 1rem;
    min-width: 1rem;
}

